package com.code.train.req;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * MemberRegisterReq
 *
 * @param
 * @author 南汉卿
 * @return
 * @date 2025/8/3 18:47
 */
@Data
public class MemberLoginReq {

    @NotBlank
    @Pattern(regexp = "^1[3456789]\\d{9}$",message = "手机号格式不正确")
    String  mobile;

    @NotBlank
    @Pattern(regexp = "^\\d{6}$",message = "验证码格式不正确")
    String  code;
}
